package com.example.common.vo;

/**
 * @author 徐佳辉
 * @date 2020/12/3 13:32
 */
public enum ResponseEnum {
    SUCCESS(0,"成功"),ERROR(-1,"失败")
    ,NOT_NULL(-2,"用户名或密码不能为空"),LOGIN_ERROR(-3,"用户名或密码错误")
    ,DISABLE_LOGIN(-4,"禁止登录");


    private int code;

    private String msg;

    ResponseEnum() {
    }

    ResponseEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
